﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Lisphi.Lab.K2Site._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>K2 Demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span><%= this.User.Identity.Name %></span>&nbsp;|&nbsp;
        <asp:LinkButton ID="lnkLogout" runat="server" onclick="lnkLogout_Click">Logout</asp:LinkButton>
        <br /><br />
        <span>ProcInstID: </span><%= this.ProcInstID %>&nbsp;&nbsp;
        <hr />
        <asp:Label ID="Label1" runat="server" Text="Folio"></asp:Label>
        <asp:TextBox ID="txtFolio" runat="server"></asp:TextBox>
        <asp:Button ID="btnCreateProcess" runat="server" Text="Create Process" onclick="btnCreateProcess_Click" />
        <br />
        <asp:TextBox ID="txtProcInstID" runat="server"></asp:TextBox>
        <asp:Button ID="btnOpenWorklist" runat="server" Text="Open Worklist" onclick="btnOpenWorklist_Click" />
        <br />
        AuditUser: <asp:TextBox ID="txtAuditUser" runat="server"></asp:TextBox>&nbsp;
        LineValue: <asp:TextBox ID="txtLineValue" runat="server"></asp:TextBox>
        <asp:Button ID="btnMoveWorklistItem" runat="server" Text="Move WorklistItem" onclick="btnMoveWorklistItem_Click" />
        <br />
        Activity: <asp:TextBox ID="txtGotoActivity" runat="server"></asp:TextBox>&nbsp;
        AuditUser: <asp:TextBox ID="txtGotoAuditUser" runat="server"></asp:TextBox>
        <asp:Button ID="btnGotoActivity" runat="server" Text="Goto Activity" onclick="btnGotoActivity_Click" />
        <hr />
        row count:&nbsp;<asp:Label ID="lblRowCount" runat="server" Text="0"></asp:Label>
        <asp:GridView ID="grdWorklist" runat="server">
        </asp:GridView>
    </div>
    
    <hr /><hr />
    <asp:Label ID="lblFolio" runat="server" Text="Folio"></asp:Label>
    <asp:TextBox ID="txtFolioForK2Mng" runat="server"></asp:TextBox>
    <asp:Button ID="btnGetWorklistFromk2Mng" runat="server" Text="Get Worklist from K2Mng" onclick="btnGetWorklistFromk2Mng_Click" />
    <asp:GridView ID="grdWorklistFromk2Mng" runat="server">
    </asp:GridView>
    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
    <asp:Button ID="btnRedirect" runat="server" Text="Redirect" 
        onclick="btnRedirect_Click" />
    </form>
</body>
</html>
